public class TimeClient {
    public static void main(String[] args) {
        int port = Global.port;
        if (args != null && args.length > 0) {
            try {
                port = Integer.valueOf(args[0]);
            } catch (Exception e) {
                // use default
            }
        }

        AsyncTimeClientHandler asyncTimeClientHandler = new AsyncTimeClientHandler("127.0.0.1", port);
        new Thread(asyncTimeClientHandler, "aio-asyncTimeClientHandler-001").start();
    }
}
